package com.example.service;

import com.example.entity.ClubComment;
import com.example.mapper.ClubCommentMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClubCommentService {
    @Resource
    private ClubCommentMapper clubCommentMapper;

    public List<ClubComment> selectByClubId(Integer clubId) {
        return clubCommentMapper.selectByClubId(clubId);
    }

    public void add(ClubComment comment) {
        clubCommentMapper.insert(comment);
    }
} 